package com.example.e.data


class DataBean {
    var imageRes: Int? = null
    var imageUrl: String? = null
    var title: String?
    var viewType: Int

    constructor(imageRes: Int?, title: String?, viewType: Int) {
        this.imageRes = imageRes
        this.title = title
        this.viewType = viewType
    }
    constructor(imageUrl: String?, title: String?, viewType: Int) {
        this.imageUrl = imageUrl
        this.title = title
        this.viewType = viewType
    }

    companion object {
        //测试数据，如果图片链接失效请更换
        val testData3: List<DataBean>
            get() {
                val list: MutableList<DataBean> = ArrayList()
                list.add(
                    DataBean(
                        "https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2830135828,3433541295&fm=26&gp=0.jpg",
                        null,
                        1
                    )
                )
                list.add(
                    DataBean(
                        "https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=1939011072,1222748611&fm=26&gp=0.jpg",
                        null,
                        1
                    )
                )
                list.add(
                    DataBean(
                        "https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=1164830384,304291445&fm=26&gp=0.jpg",
                        null,
                        1
                    )
                )
                list.add(
                    DataBean(
                        "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=3452759212,1341780119&fm=26&gp=0.jpg",
                        null,
                        1
                    )
                )
                list.add(
                    DataBean(
                        "https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=3669185293,4132720517&fm=26&gp=0.jpg",
                        null,
                        1
                    )
                )
                return list
            }
    }
}
